<script setup>
import { reactive, toRefs } from 'vue';
import ctAddQuestion from '../package/components/add-question/index.vue'
import questionConfig from './questionConfig.json'
const { data } = toRefs(reactive({
  data: null
}))
const close = (data) => {
  console.log(data);
}
const save = (data) => {
  console.log(data);
}
const saveBack = (data) => {
  console.log(data);
}
</script>

<template>
  <ctAddQuestion  :data="data" :questionConfig="questionConfig" questionDbId="103" questionType="单选题" @close="close"
    @save="save" @saveBack="saveBack" tinymceUrl="https://icctest.hep.com.cn/sys/common/voteFileUpload"
    token="eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE3MDIyNjQyNTUsInVzZXJuYW1lIjoiY2xhc3NfNDUifQ.HKC6SKXERjscKQwCe1BZsq2eWLe3gzbkX7ZgH2F8Bk4">
  </ctAddQuestion>
</template>

<style scoped></style>